.class public Les/qp;
.super Ljava/lang/Object;
.source "ResidentToolbarManager.java"


# static fields
.field private static a:Les/qp;


# direct methods
.method private constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static c()Les/qp;
    .locals 2

    .line 1
    sget-object v0, Les/qp;->a:Les/qp;

    if-nez v0, :cond_1

    .line 2
    const-class v0, Les/qp;

    monitor-enter v0

    .line 3
    :try_start_0
    sget-object v1, Les/qp;->a:Les/qp;

    if-nez v1, :cond_0

    .line 4
    new-instance v1, Les/qp;

    invoke-direct {v1}, Les/qp;-><init>()V

    sput-object v1, Les/qp;->a:Les/qp;

    .line 5
    :cond_0
    monitor-exit v0

    goto :goto_0

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1

    .line 6
    :cond_1
    :goto_0
    sget-object v0, Les/qp;->a:Les/qp;

    return-object v0
.end method


# virtual methods
.method public a()V
    .locals 4

    .line 1
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    invoke-static {v0}, Landroidx/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    const-string v1, "show_sdcard_notification"

    .line 2
    invoke-interface {v0, v1}, Landroid/content/SharedPreferences;->contains(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 3
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object v2

    const-string v3, "key_resident_toolbar_enabled"

    invoke-virtual {v2, v3}, Lcom/estrongs/android/pop/o;->a(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_1

    const/4 v2, 0x0

    .line 4
    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 5
    invoke-static {}, Les/rp;->b()V

    .line 6
    :cond_0
    invoke-static {v0}, Les/rp;->a(Z)V

    :cond_1
    return-void
.end method

.method public a(Z)V
    .locals 1

    .line 7
    invoke-static {}, Les/rp;->b()V

    .line 8
    invoke-static {p1}, Les/rp;->a(Z)V

    const/4 v0, 0x0

    .line 9
    invoke-virtual {p0, p1, v0}, Les/qp;->a(ZZ)V

    return-void
.end method

.method public a(ZZ)V
    .locals 0

    if-eqz p2, :cond_1

    if-eqz p1, :cond_0

    .line 10
    invoke-static {}, Les/pz;->k()Les/pz;

    move-result-object p1

    invoke-virtual {p1}, Les/pz;->e()V

    goto :goto_0

    .line 11
    :cond_0
    invoke-static {}, Les/pz;->k()Les/pz;

    move-result-object p1

    invoke-virtual {p1}, Les/pz;->b()V

    goto :goto_0

    :cond_1
    if-eqz p1, :cond_2

    .line 12
    invoke-static {}, Les/pz;->k()Les/pz;

    move-result-object p1

    invoke-virtual {p1}, Les/pz;->f()V

    goto :goto_0

    .line 13
    :cond_2
    invoke-static {}, Les/pz;->k()Les/pz;

    move-result-object p1

    invoke-virtual {p1}, Les/pz;->c()V

    :goto_0
    return-void
.end method

.method public b()V
    .locals 2

    .line 1
    new-instance v0, Les/pp;

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v1

    invoke-direct {v0, v1}, Les/pp;-><init>(Landroid/content/Context;)V

    .line 2
    invoke-virtual {v0}, Les/pp;->a()V

    return-void
.end method
